Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.favorites.actions--filters

This contribution is part of XML component org.nuxeo.ecm.favorites.actions inside nuxeo-platform-collections-jsf-9.10.jar /OSGI-INF/favorites-actions-contrib.xml

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter id="canAddToFavorites">
          <rule grant="true">
            <condition>
              #{favoritesActions.canCurrentDocumentBeAddedToFavorites()}
            </condition>
          </rule>
        </filter>
  • <filter id="canRemoveFromFavorites">
          <rule grant="true">
            <condition>
              #{favoritesActions.canCurrentDocumentBeRemovedFromFavorites()}
            </condition>
          </rule>
        </filter>

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="canAddToFavorites">
      <rule grant="true">
        <condition>
          #{favoritesActions.canCurrentDocumentBeAddedToFavorites()}
        </condition>
      </rule>
    </filter>

    <filter id="canRemoveFromFavorites">
      <rule grant="true">
        <condition>
          #{favoritesActions.canCurrentDocumentBeRemovedFromFavorites()}
        </condition>
      </rule>
    </filter>

  </extension>